﻿namespace FlexField.Metadata.EntityFrameworkCore
{
    /// <summary>
    /// Represents a property that an entity possesses.
    /// </summary>
    /// <typeparam name="TKey">The type used for the primary key for the entity.</typeparam>
    public class DataEntityProperty<TKey> where TKey : IEquatable<TKey>
    {
        /// <summary>
        /// Gets or sets the name of the entity property.
        /// </summary>
        public virtual string PropertyName { get; set; }

        /// <summary>
        /// Gets or sets the normalized name for this property.
        /// </summary>
        public virtual string NormalizedPropertyName { get; set; }

        /// <summary>
        /// Gets or sets the value of the entity property.
        /// </summary>
        public virtual string PropertyValue { get; set; }

        /// <summary>
        /// Gets or sets the primary key of the data entity that the property belongs to.
        /// </summary>
        public virtual TKey EntityId { get; set; }
    }
}
